#include "widget.h"
#include "ui_widget.h"

#include <QFont>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QFont font;
    font.setPixelSize(20);
    font.setFamily("楷体");
    font.setBold(true);

    ui->plainTextEdit->setFont(font);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background-color: rgb(240, 240, 240)");
    ui->plainTextEdit->setStyleSheet("background-color: white; color: black");
    ui->pushButton_light->setStyleSheet("background-color: rbg(225, 225, 225); color: black");
    ui->pushButton_drak->setStyleSheet("background-color: rbg(225, 225, 225); color: black");
}


void Widget::on_pushButton_drak_clicked()
{
    this->setStyleSheet("background-color: rgb(33, 35, 36)");
    ui->plainTextEdit->setStyleSheet("background-color: black; color: white");
    ui->pushButton_light->setStyleSheet("background-color: rgb(64, 65, 66); color: white");
    ui->pushButton_drak->setStyleSheet("background-color: rgb(64, 65, 66); color: white");
}

